package com.aspose.cells;

abstract class zzx extends zaag {
   protected zagu l(zaay var1) {
      zagu var2 = this.a;
      zagu var3 = this.b;
      double var4 = 0.0D;
      if (var2 != null) {
         var2 = var2.e(var1);
         if (var2.b() == 0) {
            return var2;
         }

         zyy var6 = var2.a(var1, 7);
         if (var6 == null) {
            return zzg.a;
         }

         var4 = var6.k();
      }

      double var9 = 0.0D;
      if (var3 != null) {
         var3 = var3.e(var1);
         if (var3.b() == 0) {
            return var3;
         }

         zyy var8 = var3.a(var1, 7);
         if (var8 == null) {
            return zzg.a;
         }

         var9 = var8.k();
      }

      return this.a(var4, var9, var1.p.Q.f);
   }

   protected abstract zagu a(double var1, double var3, zahi var5);
}
